package com.kaifamiao.demo.d0813;

import com.kaifamiao.demo.d0805.A;

public class Demo implements Comparable<Demo> {


    public static void main(String[] args) {
        // 50
        try {
            int x = 0;
            int y = 5 / x;
        } catch (NullPointerException e){

        } catch (ArithmeticException ae) {
            System.out.println("Arithmetic Exception");
        } catch (Exception e) {
            System.out.println("Exception");
        }
        System.out.println("finished");

    }

    @Override
    public int compareTo(Demo o) {
        return 0;
    }
}

class Father {
    static void test() {
        System.out.println("Father.test()");
    }

    class InnerClass {
    }
}

/**
 * 子类从父类中继承了些什么？
 * 访问修饰符
 */
class Child extends Father {

    public static void main(String[] args) {
        // 匿名类
    }

//    void test() {
//        System.out.println("Child.test()");
//        Father.test();
//    }
}




